<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var obj = {
        name: '刘桑',
        age: 30
      };
      var obj1 = { ...obj };
      obj1.age = 60;
      console.log(obj1);
      console.log(obj);
    </script>
  </body>
</html>
